home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / MCASM.RAR / MC_ASM.EXE / WROX_ASM / CH11 / VESAINFO.INC < prev    next >
Text File  |  1994-03-17  |  2KB  |  71 lines

  1. ;SVGA information block returned by GetSVGAInfo call
  2. SVGAInfoBlock    struc
  3.     VESASignature    db 4 dup (?)    ;Signature bytes:  must be 'VESA'
  4.     VESAVersion    dw 0        ;VESA version number
  5.     OEMStringPtr    dd 0            ;Far pointer to OEM string
  6.     Capabilities    dd 0            ;Capabilities
  7.     VideoModePtr    dd 0            ;Far pointer to list of supported SVGA modes
  8.     MemBlockInst    dw 0        ;64K memory blocks installed
  9.     reserved    db 236 dup (0)    ;Revserved
  10. SVGAInfoBlock    ends
  11.  
  12. ;Mode information returned by GetModeInfo call
  13. ModeInfoBlock    struc
  14.     ModeAttributes    dw 0        ;Mode attributes
  15.     WinAAttributes    db 0            ;Window A attributes
  16.     WinBAttributes    db 0        ;Window B attributes
  17.     WinGranularity    dw 0            ;Window granularity
  18.     WinSize        dw 0            ;Window size
  19.     WinASegment    dw 0            ;Window A start segment
  20.     WinBSegment    dw 0            ;Window B start segment
  21.     WinFuncPtr    dd 0        ;Far pointer to window function call
  22.     BytesPerLine    dw 0        ;Bytes per scan line
  23. ;end of obligatory structure
  24.  
  25.     XResolution    dw 0        ;Horizontal resolution
  26.     YResolution    dw 0            ;Vertical resolution
  27.     XCharCellSize    db 0            ;Character cell width
  28.     YCharCellSize    db 0            ;Character cell height
  29.     NumberOfPlanes    db 0            ;Number of memory planes
  30.     BitsPerPixel    db 0            ;Bits per pixel
  31.     NumberOfBanks    db 0            ;Number of banks
  32.     MemoryModel    db 0            ;Memory model type
  33.     BankSize    db 0            ;Bank size in KB
  34.     NumberofPages    db 0        ;Number of display pages available
  35.     Reserv        db 226 dup (0)    ;Reserved
  36. ModeInfoBlock    ends
  37.  
  38. ;VESA Control function
  39. VESACall    EQU    4Fh
  40. GetVESAInfo    EQU    0
  41. GetModeInfo    EQU    1
  42. SetVESAMode    EQU    2
  43. GetVESAMode    EQU    3
  44. SVGAState    EQU    4
  45. SwichBank    EQU    5
  46. ScanLineLength    EQU    6
  47. StartofDisplay    EQU    7
  48.  
  49. End_of_modes    EQU    -1
  50.  
  51. ;Video mode Attributes
  52. HardSupport    EQU     01h    ;Mode is supported in hardware
  53. OptionalInfo    EQU    02h    ;Optional mode information is available
  54. BIOSSupport    EQU     04h    ;BIOS supports output functions
  55. Color        EQU    08h    ;It is a is color mode
  56. GraphicsMode    EQU    10h    ;It is a graphics mode
  57.  
  58. ;Window Attributes
  59. WinExists    EQU    01h    ;Window exists
  60. WinRead        EQU    02h    ;Window is readable
  61. WinWrite    EQU    04h    ;Window is writable
  62.  
  63. ;Memory models
  64. TextMode    EQU      0    ;Text modes
  65. CGAGraphMode    EQU    1    ;CGA Graphics modes
  66. HercGraphMode    EQU    2    ;Hercules graphics mode
  67. PlanarMode    EQU    3    ;4 Plane planar modes
  68. PackedMode    EQU     4    ;Packed pixel modes
  69. NonChainMode    EQU    5    ;Extended packed pixel
  70. HIColor        EQU    6    ;R,G,B per pixel model
  71.